package scaladuct.memento

import java.lang.String

/**
 * <p>
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: Dec 5, 2010
 * Time: 2:18:51 PM
 */

@serializable @SerialVersionUID(1L)
object DummyMementoStorage extends MementoStorage {

  var mementos = Map.empty[String, Memento]

  def findMemento(mementoName: String) = {
    mementos.get(mementoName)
  }

  def storeMemento(memento: Memento) = {
    mementos += (memento.name -> memento)
  }
}